<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap">
	<div class="nav">
		<div class="return">
			<a href='<yjd:url url="/tag/list"/>'>返回上一级</a>
		</div>
	</div>
	<form method="post" action='<yjd:url url="/tag/save"/>' class="J_ajaxForm" autocomplete="off">
		<input type="hidden" name="tag_id" value="${model.tag_id }">
		<div class="h_a">${model.tag_id!=null?"编辑":"添加" }标签</div>

		<div class="table_full">
			<table width="100%">
				<tr>
					<th>标签名称：</th>
					<td><input name="tag_name" type="text" class="input length_6"
						value="${model.tag_name }"> (建议不要超过4个字) </td>
					<td><div class="fun_tips"></div></td>
				</tr>
				<tr>
					<th>排序：</th>
					<td><input name="tag_sort" type="text" class="input length_6"
						value="${model.tag_sort }"></td>
					<td><div class="fun_tips"></div></td>
				</tr>
				<tr>
					<th>是否置顶：</th>
					<td>
						<input type="radio" name="top" value="0" <c:if test="${model.top==0||model.top==null}">checked</c:if> />否</input>
					<input type="radio" name="top" value="1" <c:if test="${model.top==1}">checked</c:if> />是</input>
					</td>
					<td><div class="fun_tips"></div></td>
				</tr>
				<tr>
					<th>是否启用：</th>
					<td>
						<input type="radio" name="enable" value="0" <c:if test="${model.enable==0}">checked</c:if> />否</input>
						<input type="radio" name="enable" value="1" <c:if test="${model.enable==1||model.enable==null}">checked</c:if> />是</input>
					</td>
					<td><div class="fun_tips"></div></td>
				</tr>
			</table>
		</div>


		<div class="btn_wrap">
			<div class="btn_wrap_pd">
				<button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
			</div>
		</div>
	</form>
	<!-- end -->
</div>
